package cn.kgc.springcloud.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 课工场
 * @date 2025/1/13
 * @description
 */
@FeignClient(value = "HYSTRIXSERVICE1",fallback = ServiceClientFallback.class)
public interface ServiceClient {
    @GetMapping("/hystrix/m1/{id}")
    String  method1(@PathVariable("id") Integer id);
}
